package com.lgc.demo.test;

import com.lgc.demo.test.genericTest.Generic;

import java.util.ArrayList;
import java.util.List;

public class Program {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");

        list.remove("bbb");
        list.remove("dd");

        list.set(0,"first");

        list.forEach(p-> System.out.println(p));


        String str = "safasfafasfa_89988979";
        String[] arr = str.split("_", 2);
        String[] arr1 = str.split("_");

        //泛型
        Generic<String> aG=new Generic<>("sf");
        Generic aaG=new Generic(3); //也可以这样




        int b = 0;
    }
}
